<div class="pageContent">
    <form method="post"
        action="${rc.getContextPath()}/manage/sequence/saveSequence"
        class="pageForm required-validate"
        onsubmit="return validateCallback(this, dialogAjaxDone);">
        <div class="pageFormContent">
            <input type="hidden" name="navTabId" value="${navTabId!''}">
			<fieldset class="dataset">
                <dl>
                    <dt><@label key="sequenceCode.C,colon">序列编号：</@label></dt>
                    <dd>
                        <input name="sequenceCode" value="${sequence.sequenceCode!''}"
                            size="32" type="text" maxlength="20" class="required alphanumeric toUp" 
                            <#if pattern=="view">
	                             readonly="readonly"
	                        <#else>
	                        	 remote="${rc.getContextPath()}/manage/sequence/validateSequence"
	                        </#if> 
                        /> 
                    </dd>
                </dl>
                <dl>
                    <dt><@label key="sequenceText.C,colon">序列描述：</@label></dt>
                    <dd>
                        <input name="sequenceText" value="${sequence.sequenceText!''}"
                            size="32" type="text" maxlength="20" class="required" 
                            <#if pattern=="view">
	                             readonly="readonly"                        
	                        </#if>
                        /> 
                    </dd>
                </dl>
              	<dl>
                    <dt><@label key="nextValue.C,colon">下一个值：</@label></dt>
                    <dd>
                        <input name="nextValue"  value="${sequence.nextValue!''}"
                            size="32" type="text" maxlength="18" class="required digits"
                            <#if pattern=="view">
	                             readonly="readonly"                        
	                        </#if> /> 
                    </dd>
                </dl>
            </fieldset>
        </div>
        <#if pattern=="view">
	        <#if sequence??>
	            <#assign createInfo=sequence>
	            <#include "/common/createInfo.html">
	        </#if>                  
        </#if> 
        <div class="formBar">
            <ul>
            	<#if pattern=="view">
            		<li>
	                    <div class="buttonActive">
	                        <div class="buttonContent">
	                                <button type="button" class="close" onclick="beforeClose();"><@label key="close.B">关闭</@label></button>
	                        </div>
	                    </div>
	                </li>
            	<#else>
                    <li>
	                    <div class="buttonActive">
	                        <div class="buttonContent">
	                            <button type="submit"><@label key="save.B">保存</@label></button>
	                        </div>
	                    </div>
	                </li>
	                <li>
	                    <div class="buttonActiveGrey">
	                        <div class="buttonContent">
	                                <button type="button" class="close" ><@label key="cancel.B">取消</@label></button>
	                        </div>
	                    </div>
	                </li>  
            	</#if>                 
            </ul>
        </div>
    </form>
</div>